{% load i18n %}
<li class="dropdown-submenu">
    <a><i class="fa fa-filter {% if spec.is_used %}text-success{% else %}text-muted{% endif %}"></i> {{ title }}</a>
    <ul class="dropdown-menu">
        {% for choice in choices %}
            <li{% if choice.selected %} class="active"{% endif %}>
                <a href="{{ choice.query_string|iriencode }}">{{ choice.display }}</a></li>
        {% endfor %}
    </ul>
</li>